﻿@model EnterpriseFund.Model.TaxAuditForm
@{
    Layout = null;

    List<EnterpriseFund.Model.SupportPolicy> xzSupportPolicy = (ViewData["xzSupportPolicy"] == null ? new List<EnterpriseFund.Model.SupportPolicy>() : ViewData["xzSupportPolicy"] as List<EnterpriseFund.Model.SupportPolicy>);
}
<!DOCTYPE html> 
<html>
@Html.Partial("LoadPanelPartial")
<head>
    <title></title>
    @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Content/jquery-ui.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery-ui.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/regex.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)


    <script type="text/javascript">

        $(document).ready(function () {
            lpModal.Hide();
            $("#toolMenu").smartFloat();
            $("#tabs").tabs();
            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert != "") {
                alert(hdjsAlert);
            }
            if (hdjsAlert == "操作成功") {
                window.location.href = rootPath + '/TaxAuditPolicyAudit/';
            }
        });

        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
        }

        function MenuTop_emClick(source, e) {
            switch (e.item.name) {
                case "btnSubmit":
                    {
                        Save("open");
                        break;
                    }
                case "btnReturn":
                    {
                        $.ajax({
                            type: 'POST',
                            url: rootPath + '/TaxAuditPolicyAudit/IsReturn',
                            data: { taxAuditId: $("#hidFTaxAuditId").val() },
                            success: function (result) {
                                if (result == "ok") {
                                    var rs = window.showModalDialog(rootPath + "/ReturnDlg?tableName=t_TaxAuditForm&id=" + $("#hidFTaxAuditId").val() + "&feq=30");

                                    if (rs == "S") {
                                        window.location.href = rootPath + '/TaxAuditPolicyAudit/';
                                    }
                                }
                                else {
                                    alert("该企业已加入到期号无法退回!");
                                }
                            }
                        });
 

                        break;
                    }
                case "btnback":
                    {
                        window.location.href = rootPath + '/TaxAuditPolicyAudit/';
                    }
            }

        }

        function Save(FStatus) {
            lpModal.Show();
            $("#hidFStatus").val(FStatus);
            form1.submit();
        }


       
    </script>
    <style>
    .tableStyle
{
	width: 100%;
	border: solid 1px black;
		padding: 6px 5px;
	border-collapse: collapse;
}
.tableStyle td
{
}

.tableStyle .tdClass
{
	padding: 0px;
  padding: 6px 5px;
	border: solid 1px black;
}
.tableStyle th
{
	text-align: right;
	padding: 6px 5px;
	border: solid 1px black;
}
.tableStyle .button
{
	margin: 2px 0px 0px 2px;
	float: left;
}

text{border:1px solid #aecaf0;}

    </style>
</head>
<body>
    @using (Html.BeginForm("Save", "TaxAuditPolicyAudit", FormMethod.Post, new { id = "form1" }))
    {
   @Html.DevExpress().Menu(settings =>
   {
       settings.Name = "toolBarMenu";
       settings.ItemAutoWidth = false;
       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
       settings.Styles.Style.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
       settings.Styles.Style.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
       settings.Items.Add(item =>
       {
           item.Name = "btnSubmit";
           item.Text = "发送";
           item.Image.Url = Url.Content("~/Content/ControlImages/edit_add.png");
       });
       settings.Items.Add(item =>
       {
           item.Name = "btnReturn";
           item.Text = "退回";
           item.Image.Url = Url.Content("~/Content/ControlImages/undo_blue.png");
       });
       settings.Items.Add(item =>
       {
           item.Name = "btnback";
           item.Text = "返回";
           item.Image.Url = Url.Content("~/Content/ControlImages/back.png");
       });
       settings.ClientSideEvents.ItemClick = "function(source,e){MenuTop_emClick(source,e)}";
       settings.ItemLinkMode = ItemLinkMode.ContentBounds;
   }).GetHtml()

    <br />
    <table align="center" class="tableForm">
    <tr>
     <Td align="right" style=" width:150px" class="tdClass">
     纳税人编码：
    </Td>
     <Td class="tdClass">
      @Html.DevExpress().TextBox(settings =>
 {
     settings.Name = "NSRBM";
     settings.Text = Model.NSRBM;
     settings.Enabled = false;
     settings.Width = 300;
     settings.Properties.ValidationSettings.ErrorDisplayMode = ErrorDisplayMode.ImageWithText;
     settings.Properties.ValidationSettings.EnableCustomValidation = true;
 }).GetHtml()
    </Td>
    <Td align="right" style=" width:150px" class="tdClass">
     纳税人名称：
    </Td>
     <Td class="tdClass">
      @Html.DevExpress().TextBox(settings =>
 {
     settings.Name = "NSRMC";
     settings.Text = Model.NSRMC;
     settings.Enabled = false;
     settings.Width = 300;
     settings.Properties.ValidationSettings.ErrorDisplayMode = ErrorDisplayMode.ImageWithText;
     settings.Properties.ValidationSettings.EnableCustomValidation = true;
 }).GetHtml()
    </Td>
    </tr>
       <tr>
     <Td align="right" style=" width:150px" class="tdClass">
     日期：
    </Td>
     <Td class="tdClass">
      @Html.DevExpress().TextBox(settings =>
 {
     settings.Name = "rq";
     settings.Text = Model.RKRQ_Q.ToString("yyyy-MM-dd") +"至"+ Model.RKRQ_Z.ToString("yyyy-MM-dd") ;
     settings.Enabled = false;
     settings.Width = 300;
     settings.Properties.ValidationSettings.ErrorDisplayMode = ErrorDisplayMode.ImageWithText;
     settings.Properties.ValidationSettings.EnableCustomValidation = true;
 }).GetHtml()
    </Td>
      <td align="right" style=" width:150px" class="tdClass">
     补贴方式：
    </td>
     <td class="tdClass">
      @Html.DevExpress().ComboBox(settings =>
               {
                   settings.Name = "FAllowanceClassNo";
                   settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
                   settings.Width = 300;
                   settings.Properties.TextField = "FAllowanceName";
                   settings.Properties.ValueField = "FAllowanceClassNo";
                   settings.Enabled = false;
               }).BindList(ViewData["AllowanceClassList"]).Bind(Model.FAllowanceClassNo).GetHtml()
    </td>
    </tr>

      <tr>
            <td style=" width:150; text-align:right" class="tdClass">
              企业性质:</td>
            <td class="tdClass">
                @Html.DevExpress().ComboBox(settings =>
           {
               settings.Name = "FEnterprisePropNo";
               settings.Properties.DropDownStyle = DropDownStyle.DropDownList;
               settings.Properties.TextField = "FEnterprisePropName";
               settings.Properties.ValueField = "FEnterprisePropNo";
               settings.Width = 300;
               settings.Enabled = false;
           }).BindList(ViewData["EnterprisePropList"]).Bind(Model.FNewEnterprisePropNo).GetHtml()
            </td>
               
            <td class="tdClass">
   @*  @Html.DevExpress().TextBox(settings =>
 {
     settings.Name = "FPolicyNote"; 
     settings.Width = 300;
     settings.Text = Model.FPolicyNote;
     settings.Enabled = false;
     settings.Properties.ValidationSettings.ErrorDisplayMode = ErrorDisplayMode.ImageWithText;
     settings.Properties.ValidationSettings.EnableCustomValidation = true;
 }).GetHtml()*@
              @* @Html.DevExpress().Memo(settings =>
 {
     settings.Name = "FPolicyNote";
     settings.Text = Model.FPolicyNote;
     settings.Width = System.Web.UI.WebControls.Unit.Percentage(86);
     settings.Properties.Rows = 2;
     settings.Enabled = false;
 }).GetHtml()*@
            </td>
        </tr>
        <tr>
        <td style=" width:150; text-align:right" class="tdClass">
              鉴定说明:</td>
        <td class="tdClass" colspan="3">
   @*  @Html.DevExpress().TextBox(settings =>
 {
     settings.Name = "FPolicyNote"; 
     settings.Width = 300;
     settings.Text = Model.FPolicyNote;
     settings.Enabled = false;
     settings.Properties.ValidationSettings.ErrorDisplayMode = ErrorDisplayMode.ImageWithText;
     settings.Properties.ValidationSettings.EnableCustomValidation = true;
 }).GetHtml()*@
               @Html.DevExpress().Memo(settings =>
 {
     settings.Name = "FPolicyNote";
     settings.Text = Model.FPolicyNote;
     settings.Width = System.Web.UI.WebControls.Unit.Percentage(91);
     settings.Properties.Rows = 2;
     settings.Enabled = false;
 }).GetHtml()
            </td></tr>
    </table>
    <br />
       <div id="tabs" class="div">
            <ul>
                <li><a href="#TaxData">税款数据</a></li>
            </ul>
            <div id="TaxData"  style="height: 550px">
            <iframe  id='contentleft' name='contentleft' style='width:100%;height:100%' frameborder='0' src='@Url.Action("ShowData", "TaxAuditPolicyAudit", new { taxAuditId = Model.FTaxAuditId, y=Model.FYear })'></iframe>
            </div>
        </div> 

        @Html.Hidden("hidType", ViewData["type"])
        @Html.Hidden("hidFStatus", "")
        @Html.Hidden("hidNSRBM", Model.NSRBM)
        @Html.Hidden("hidNSRDZDAH", Model.NSRDZDAH)
        @Html.Hidden("hidFYear", ViewData["FYear"])
        @Html.Hidden("hidFTaxAuditId", Model.FTaxAuditId)
        @Html.Hidden("hidBeginDate", Model.RKRQ_Q)
        @Html.Hidden("hidEndDate", Model.RKRQ_Z)
        @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));
        @Html.Hidden("noList", ViewData["noList"])
    }
 @*@Html.DevExpress().PageControl(
    settings =>
    {
        settings.Name = "tabCtlGroup";
        settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
        //settings.Height = System.Web.UI.WebControls.Unit.Pixel(600);
        settings.Styles.Content.Border.BorderWidth = 0;
        settings.TabPages.Add("税款数据").SetContent("<iframe  id='contentleft' name='contentleft' style='width:100%;height:100%' frameborder='0' src='" + Url.Action("TaxAuditFormShowDate", "TaxAuditForm", new { NSRBM = ViewData["NSRBM"], beginDate = ViewData["beginDate"], endDate = ViewData["endDate"] }) + "'></iframe>");
        settings.TabPages.Add("调整数据").SetContent("<iframe  id='contentleft' name='contentleft' style='width:100%;height:100%' frameborder='0' src='" + Url.Action("TaxAuditAdjustIndex", "TaxAuditForm") + "'></iframe>");
    }).GetHtml()
*@
    <script>
        lp.Hide();
    </script>

</body>
</html>
